import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'

// 获取Cookie中存储的token
export function getToken() {
  return Cookies.get(TokenKey)
}

// 在Cookie中存储token
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

// 清除Cookie中储存的token
export function removeToken() {
  return Cookies.remove(TokenKey)
}
